package com.sq.partner.manager.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sq.partner.manager.dao.IGatewayChannelAppDao;
import com.sq.partner.manager.mybatis.model.GatewayChannelApp;
import com.sq.partner.manager.service.IGatewayChannelAppService;
import com.sq.partner.manager.service.IGatewayClearCacheManager;

@Service
public class IGatewayChannelAppServiceImpl implements IGatewayChannelAppService {
	
	@Resource
	IGatewayChannelAppDao gatewayChannelAppDao;
	
	@Override
	public boolean add(GatewayChannelApp gca) throws Exception {
		// TODO Auto-generated method stub
		return gatewayChannelAppDao.add(gca);
	}

	@Override
	public boolean update(GatewayChannelApp gca) throws Exception {
		// TODO Auto-generated method stub
		return gatewayChannelAppDao.update(gca);
	}

	@Override
	public boolean delete(GatewayChannelApp gca) throws Exception {
		// TODO Auto-generated method stub
		return gatewayChannelAppDao.delete(gca);
	}

	@Override
	public GatewayChannelApp queryChannelAppInfoByCodeAndId(
			GatewayChannelApp gca) throws Exception {
		// TODO Auto-generated method stub
		return gatewayChannelAppDao.queryChannelAppInfoByCodeAndId(gca);
	}

	@Override
	public boolean deleteByChannelCode(GatewayChannelApp gca) throws Exception {
		// TODO Auto-generated method stub
		return gatewayChannelAppDao.deleteByChannelCode(gca);
	} }
